﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Conusic;
using NUnit.Framework;

namespace ConusicTests
{
    [TestFixture]
    class SimpleNetTester
    {
        [Test]
        public void TestSimple()
        {
            var s = SimpleHttp.RequestPage("http://3po.ru/vkonpic/");
        }

        [Test]
        [ExpectedException(typeof(WebException), ExpectedMessage = "The remote server returned an error: (404) Not Found.")]
        public void TestSimpleNotFoundError()
        {
            var s = SimpleHttp.RequestPage("http://3po.ru/notfound.php");
        }
    }
}
